{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "_macros.html" as macros %}
{% import "param/partial/param_table.html" as param_table_macro %}
{% import "param/partial/search_param_form.html" as search_param_form_macro %}


{% block title %}万屏时代报价工具--技术参数列表{% endblock %}

{% block panel_heading %}
  万屏时代报价工具--技术参数列表
  <div class="pull-right btn-group">
    <a href="{{ url_for('product_bp.add_param') }}"
       class="btn btn-xs btn-success"
       style="margin-right: 5px;" target="_self">
        新增技术参数
    </a>
  </div>
{% endblock %}

{% block panel_body %}
    {{ search_param_form_macro.gen_form(search_form) }}
    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'product_bp.param_list', **url_kwargs) }}
    </div>
    {% endif %}

    {{ param_table_macro.gen_table(params, current_user, url_kwargs) }}

    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'product_bp.param_list', **url_kwargs) }}
    </div>
    {% endif %}
{% endblock %}

